// 事件中心 - 需要权限控制的菜单
const eventJurisdictionRoutes = [
  {
    path: '/event',
    name: 'event',
    meta: {
      title: '事件中心'
    },
    component: () => import('@/views/Event')
  },
  {
    path: '/event/report',
    name: 'event-report',
    meta: {
      title: '事件上报'
    },
    component: () => import('@/views/Event/Report')
  },
  {
    path: '/event/record',
    name: 'event-record',
    meta: {
      title: '事件记录'
    },
    component: () => import('@/views/Event/Record')
  },
  {
    path: '/event/deal',
    name: 'event-deal',
    meta: {
      title: '事件处置'
    },
    component: () => import('@/views/Event/Deal')
  }
]

// 事件中心 - 不需要权限控制的菜单
const eventWhiteRoutes = [
  {
    path: '/event/detail',
    name: 'event-detail',
    meta: {
      title: '事件详情'
    },
    component: () => import('@/views/Event/Detail')
  },
  {
    path: '/event/delay',
    name: 'event-delay',
    meta: {
      title: '延时申请'
    },
    component: () => import('@/views/Event/Delay')
  },
  {
    path: '/event/reply',
    name: 'event-reply',
    meta: {
      title: '督办回复'
    },
    component: () => import('@/views/Event/Reply')
  },
  {
    path: '/event/report/map',
    name: 'event-report-map',
    meta: {
      title: '事件上报'
    },
    component: () => import('@/views/Event/Report/map')
  },
  {
    path: '/event/static',
    name: 'event-static',
    meta: {
      title: '事件统计'
    },
    component: () => import('@/views/Event/Static')
  }
]

// 事件中心 - 菜单
const eventRoutes = [...eventJurisdictionRoutes, ...eventWhiteRoutes]

export { eventJurisdictionRoutes, eventWhiteRoutes, eventRoutes }
